package com.xm.service.reception_desk;

import com.xm.dao.background.WarehouseDao;
import com.xm.entity.Warehouse;

import java.util.List;

/**
 * 前台仓库Service
 * @author 康文程
 * @date 2024-1-8 下午 07:50
 */
public class WarehouseService {
    private final WarehouseDao dao = new WarehouseDao();

    /**
     * 查询全部仓库找出离收货地点最近的货源Id
     * @return Integer 最近货仓Id
     */
    public Integer getAllWarehouses(double myLatitude,double myLongitude) {
        return dao.getAllWarehouses(myLatitude, myLongitude);
    }
}
